n=int(input())
c=input()
for o in range(n):
    for m in range(o*-2+2*n-2):
        print(' ',end='')
    for e in range(o*4+2):
        print(c,end='')
    print()
print()